#
# Be sure to run `pod lib lint GeelyLynkcoThird.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'GeelyLynkcoThird'
  s.version          = '0.1.10'
  s.summary          = 'A short description of GeelyLynkcoThird.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

#  s.homepage         = 'http://git.evun.cn/LYNKCO-APP/iOS-GeelyLynkcoThird'
  s.homepage         = 'https://gitlab.geely.com/p-internet-marketing/lynkco-app/ios-geelylynkcothird'

  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'shuaishuai.zhu' => 'Shuaishuai.Zhu@geely.com' }
#  s.source           = { :git => 'http://git.evun.cn/LYNKCO-APP/iOS-GeelyLynkcoThird.git', :tag => s.version.to_s }
  

  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'


  s.ios.deployment_target = '9.0'

  s.static_framework = true
  
#  if ENV['mode'].to_s.include? "GeelyLynkcoThird"
      #使用zip成果物模式
      puts "GeelyLynkcoThird成果物模式集成".blue
      s.source           = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/GeelyLynkcoThird-0.1.10.zip' }
      s.vendored_framework   = '*.framework'
      s.source_files = 'GeelyLynkcoThird.framework/**/*.h'
      s.public_header_files = 'GeelyLynkcoThird.framework/**/*.h'
      s.vendored_libraries = '*.a'
#  else
#      #目前默认源码集成
#      puts "GeelyLynkcoThird源码模式集成".yellow
#      s.source           = { :git => 'https://gitlab.geely.com/p-internet-marketing/lynkco-app/ios-geelylynkcothird.git', :tag => s.version.to_s }
#      s.source_files = ['GeelyLynkcoThird/Classes/**/*.{h,m,mm,pch}']
#      s.resources = ['GeelyLynkcoThird/Assets/Pictures/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,xib,storyboard,xml}','GeelyLynkcoThird/Assets/bundle/*.bundle','GeelyLynkcoThird/Classes/**/*.{xcassets,gif,jpg,png,mp3,mp4,xml,rtf,txt,emo,lproj,plist,json,xib,storyboard}']
#      s.vendored_libraries = 'GeelyLynkcoThird/Classes/GLPay/Libary/**/*.a'
#      s.vendored_frameworks = 'GeelyLynkcoThird/Assets/frameworks/*.framework'
#  end
  
  s.frameworks = 'UIKit', 'AudioToolbox', 'AVFoundation', 'MobileCoreServices', 'CoreGraphics', 'CoreLocation', 'CoreTelephony', 'QuartzCore', 'SystemConfiguration'
  s.libraries = 'xml2', 'z', 'sqlite3', 'c', 'resolv', 'iconv', 'c++', 'bz2'

#  s.prefix_header_file = 'GeelyLynkcoThird/Classes/Macro/GLThirdCommon.h'
  s.dependency 'AlicloudUTDID'
  
  s.dependency 'UMCCommon'
#  s.dependency 'UMCSecurityPlugins'
  s.dependency 'UMCShare/UI'
  s.dependency 'UMCShare/Social/Sina'
  s.dependency 'UMCShare/Social/ReducedWeChat'
  s.dependency 'UMCShare/Social/QQ'
  s.dependency 'GeelyLynkcoCore'
  s.dependency 'AliyunOSSiOS'
  s.dependency 'SweetCoreKit'
  s.dependency 'Toast'
  s.dependency 'SAMKeychain'
  s.dependency 'Reachability'
  s.dependency 'Countly'
  s.dependency 'GeelyLynkcoMain'
  
  s.pod_target_xcconfig = {
    'OTHER_LDFLAGS' => '-ObjC',
    'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
    'VALID_ARCHS'                   => 'armv7 arm64 x86_64'
  }
  


end
